package com.stlm2.dems.pingxxpay.dao.impl;

import com.stlm2.core.base.impl.BaseDaoImpl;
import com.stlm2.dems.pingxxpay.dao.OrderPayDao;
import com.stlm2.dems.pingxxpay.entity.OrderPay;
import org.springframework.stereotype.Repository;
import java.util.List;
import java.util.Map;

@Repository("orderPayDao")
public class OrderPayDaoImpl extends BaseDaoImpl<OrderPay> implements OrderPayDao {


    @Override
    public long getCountFromOrderPayByCodeChannel(Map<String, Object> map) {
       return (Long) _selectOne("getCountFromOrderPayByCodeChannel",map);
    }

    @Override
    public OrderPay getOrderPayFromOrderPayByCodeChannel(Map<String, Object> map) {
        return selectOne("getOrderPayFromOrderPayByCodeChannel",map);
    }

    @Override
    public List<OrderPay> getOrderPayFromOrderPayByState(Map<String, Object> map) {
        return selectList("getOrderPayFromOrderPayByState",map);
    }

    @Override
    public List<OrderPay> getOrderPaysByTimeAndCodeAndState(Map<String,Object> map) {
        return selectList("getOrderPaysByTimeAndCodeAndState",map);
    }

    @Override
    public OrderPay getByCode(String code) {
        return selectOne("getByCode",code);
    }
}